
package org.appfuse.service;

import java.util.List;

import org.appfuse.model.Criteria;

public interface CriteriaManager extends Manager {
    /**
     * Retrieves all of the criterias
     */
    public List getCriterias(Criteria criteria);

    /**
     * Gets criteria's information based on id.
     * @param id the criteria's id
     * @return criteria populated criteria object
     */
    public Criteria getCriteria(final String id);

    /**
     * Saves a criteria's information
     * @param criteria the object to be saved
     */
    public void saveCriteria(Criteria criteria) throws CriteriaExistsException;
    
    /**
     * Updates a criteria's information
     * @param criteria the object to be updated
     */
    public void updateCriteria(Criteria criteria);


    /**
     * Removes a criteria from the database by id
     * @param id the criteria's id
     */
    public void removeCriteria(final String id);
    
    public List getAllCriterias();
}

